<template>
	<view>
		<scroll-view class="scroll-list" scroll-y="true">
			<u-cell-group v-for="(item, index) in list" :key="index" :index="index" >
					<u-cell-item :arrow="false" >
						<view slot="label" class="u-font-lg">
							<view class="padding-bottom-sm text-bold"><text>箱码：{{item.boxcode}}</text></view>
						</view>
					</u-cell-item>
					<u-line color="blue" />
			</u-cell-group>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				code:'',
				list:[],
			}
		},
		onLoad(data) {
			this.code = data.code;
			this.getData();
		},
		methods: {
			getData(){
				this.$u.api.box.findBoxCodeList({code:this.code}).then(res=>{
					if(res.result = 'true'){
						this.list = res.data;
					}
				})
			},
		}
	}
</script>

<style>
@import '../btdm.css';
</style>
